package com.zhuiyi.springzhuiyi.model;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;

public class Demo2 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("11");
        list.add("22");
        list.add("33");
        list.add("44");
        list.add("55");
        list.add("666");
        List<String> list1 = new ArrayList<>();
        list1.add("aa");
        list1.add("bb");
        list1.add("cc");
        list1.add("ddd");
        Stream<String> stream = list.stream();
        Stream<String> stream1 = list1.stream();
        Stream<String> concat = Stream.concat(stream, stream1);
        concat.forEach(System.out::println);


    }

}
